package com.starryx.driverschool.dao;

import com.starryx.driverschool.po.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface StudentRepository extends JpaRepository<Student, Long>, JpaSpecificationExecutor<Student> {
    Student findByNo(String no);

    Student findByTeacherId(Long id);
}
